//autoLogin.js
import store from "../../utils/factory";
import {
  agreement
} from "../../utils/config";

let that = null;

Page({
  data: {
    content: {}
  },
  onLoad: function () {
    that = this;
  },
  onShow() {
    // this.agreement()
  },
  agreement() {
    agreement()
      .then(res => {
        console.log(res)
        that.setData({
          content: res.data
        })
      })
      .catch(err => {});
  },
});